/*
 * @Description: 静态变量
 * @Author: wangfuwei
 * @Date: 2021-01-22 15:09:21
 * @LastEditors: wangfuwei
 * @LastEditTime: 2021-04-24 22:38:32
 * @FilePath: /horizon-frontend/src/core/const.js
 */

// Public Path
export const PUBLIC_PATH = window.location.origin || window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");

// 登录地址
export const LOGIN_PATH = "/user/login";

// 认证Token --> Service
export const ACCESS_TOKEN = "Access-Token";

// Token有效期  --> Service
export const ACCESS_TOKEN_ALIVE = "Access-Token-Alive";

// 国际化语言  --> Service
export const ACCEPT_LANGUAGE = "Accept-Language";

// 主题色 --> LS
export const LS_COLOR = "Primary-Color";

// 色弱模式 --> LS
export const LS_COLOR_WEAK = "Color-Weak";

// 默认语言
export const DEFAULT_LANGUAGE = "zh-CN";

//Content-Type
export const Content_Type = {
  JSON: "application/json",
  FORM: "application/x-www-form-urlencoded",
  MULTIPART: "multipart/form-data",
};
